/**
 * 检查当前元素是否可纵向滚动
 * @param element 检查的元素
 * @returns 
 */
export const isVerticalScrollable = (element: HTMLElement) => {
  const style = window.getComputedStyle(element);

  return (
    style.overflow === 'scroll' ||
    style.overflow === 'auto' ||
    style.overflowY === 'auto' ||
    style.overflowY === 'scroll'
  )
}
